<#macro layout title>
<!DOCTYPE html>
<html>

<#assign ctx=springMacroRequestContext.contextPath />
<head>
    <meta charset="utf-8">
    <title>${title}</title>
    <meta name="viewport" content="width=device-width, initial-scale=1, maximum-scale=1">
    <meta name="keywords" content="fly,layui,前端社区">
    <meta name="description" content="Fly社区是模块化前端UI框架Layui的官网社区，致力于为web开发提供强劲动力">
    <link rel="stylesheet" href="${ctx}/res/layui/css/layui.css">
    <link rel="stylesheet" href="${ctx}/res/css/global.css">
    <script src="${ctx}/res/layui/layui.js"></script>
</head>
<body>
<#include "/inc/common.ftl"/>
<#include "/inc/header.ftl"/>

<#nested />

<#include "/inc/footer.ftl"/>


<script>
    //layui.cache.page = '';
    layui.cache.user = {
        username: '游客'
        ,uid: -1
        ,avatar: '${ctx}/res/images/avatar/00.jpg'
        ,experience: 83
        ,sex: '男'
    };
    layui.config({
        version: "3.0.0"
        ,base: '${ctx}/res/mods/' //这里实际使用时，建议改成绝对路径
    }).extend({
        fly: 'index'
    }).use('fly');
</script>

</body>
</html>
</#macro>